package com.labofjet.exception;


@SuppressWarnings("serial")
public class BaseException extends RuntimeException{
    
    private String code;

    public BaseException() {
        super();
    }
    
    public BaseException(BaseException e) {
        super(e);
        code = e.getCode();
    }
    
    public BaseException(String code){
        super(code);
    }
    
    public BaseException(String code, String message) {
        super(message);
        this.code = code;
    }
    
    public BaseException(String code, String message, Throwable t) {
        super(message, t);
        this.code = code;
    }
    

    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }
}
